import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import babel from 'rollup-plugin-babel';
import buble from 'rollup-plugin-buble';

let name = 'symbol';

export default {
  input: `src/${name}.js`,
  output:[
    //{file: `dist/${name}.iife.js`,format: 'iife'},
    //{file: `dist/${name}.cjs.js`,format: 'cjs'},
    //{file: `dist/${name}.iife.js`,format: 'iife'},
    //{file: `dist/${name}.es.js`,format: 'es'},
    //{file: `dist/${name}.amd.js`,format: 'amd'},
    {file: `dist/${name}.umd.js`,format: 'umd'},
   
  ],
  name: 'MyModule',
  plugins: [
    buble(),
    babel({
      exclude: 'node_modules/**',
      plugins: ['external-helpers'],
      externalHelpers: true
    }),
    resolve(),
    commonjs()

  ]
};